import request from '@/utils/iasRequest'

// 查询所有分区
export function queryDivision() {
  return request({
    url: '/lead-time/queryDivision',
    method: 'get'
  })
}
// 查询分区下的部门
export function queryDeptNbrByDivision(division) {
  return request({
    url: '/lead-time/queryDeptNbrByDivision',
    method: 'post',
    data: division
  })
}
// 按分区统计总lead time
export function queryReportByDivision(division) {
  return request({
    url: '/lead-time/queryReportByDivision2',
    method: 'post',
    data: division
  })
}

// 按分区统计详情lead time
export function queryDetailReportByDivision(val) {
  return request({
    url: '/lead-time/queryDetailReportByDivision2',
    method: 'post',
    data: val
  })
}
// 全部区统计总lead time
export function queryTotalReportByAllDivision(val) {
  return request({
    url: '/lead-time/queryTotalReportByAllDivision2',
    method: 'post',
    data: val
  })
}

// 全部区统计详情lead time
export function queryDetailReportByAllDivision(val) {
  return request({
    url: '/lead-time/queryDetailReportByAllDivision2',
    method: 'post',
    data: val
  })
}

// 统计总平均耗时
export function countTotal(val) {
  return request({
    url: '/lead-time/countTotal',
    method: 'post',
    data: val
  })
}

// 统计分区总平均耗时
export function countTotalByDevision(val) {
  return request({
    url: '/lead-time/countTotalByDevision',
    method: 'post',
    data: val
  })
}
